import { IsNotEmpty, IsOptional } from 'class-validator';

export class QueryRoleDto {
  @IsNotEmpty({ message: '每页数量必填' })
  limit: number;

  @IsNotEmpty({ message: '页码序号必填' })
  page: number;

  @IsOptional()
  code?: string;

  @IsOptional()
  description?: string;
}
